package com.simple.crawler.exception;

import com.simple.crawler.constant.ExceptionCode;

public class CrawlerRuntimeException extends RuntimeException {

    private String code;

    public CrawlerRuntimeException(ExceptionCode exception) {
        super(exception.getDesc());
        this.code = exception.getCode();
    }

    public CrawlerRuntimeException(String code, String message) {
        super(message);
        this.code = code;
    }

}
